<?php $this->load->view('header'); ?>
<?php $this->load->view('menus'); ?>
<br /><br />

<form class="feedbackform" action="<?=site_url('department/create');?>" method="post">

<? if(isset($this->error)) { ?>
<div class="error">
	<?=$this->error?>
</div>
<? } ?>

<div class="fieldwrapper">
	<label for="name" class="styled">Name:</label>
	<div class="thefield">
		<input type="text" name="name" value="<?=$this->input->post('name')?>"/>
	</div>
</div>


<div class="fieldwrapper">
	<label for="description" class="styled">Description:</label>
	<div class="thefield">
		<textarea name="description"><?=$this->input->post('description')?></textarea>
</div>
</div>

<div class="buttonsdiv">
	<input type="submit" name="submit" value="Add departament" style="margin-left: 150px;" /> 
	</div>

</form>

<?php $this->load->view('footer'); ?>
